package com.vitech.javacertification.oo;

public class ParentChildMethods {

		
	public static void main(String ... s){
		
		Child o = new Child(5);
		
		o.doSomething();
		
		Parent p = new Parent(0);
		
	}
	
	
}


class Parent{
	
	public Parent(int i){
		
	}
	
	 public static Object doSomething(){
		
		System.out.println("Something done on parent");
		return null;
		
	}	
}


class Child extends Parent{
	
	
	 public Child(int i) {
		super(i);
		// TODO Auto-generated constructor stub
	}

	public static String doSomething(){
		
		System.out.println("Something done on child");
		return null;
	}	
}